from typing import Union
from pydantic import BaseModel


class Filter(BaseModel):
    field: str
    comparison: str
    value: str


class RawQuerySchema(BaseModel):
    schema_id: str
    field: list
    filter: Filter


class DashboardCreateSchema(BaseModel):
    content: str

class DashboardUpdateSchema(BaseModel):
    content: str


class SQLQuerySchema(BaseModel):
    sql: str